package forward.Module.Modules.Render;

import forward.api.EventHandler;
import forward.api.Events.World.EventPreUpdate;
import forward.api.Value.Numbers;
import forward.api.Value.Value;
import forward.Module.Module;
import forward.Module.ModuleType;

public class SetColor
extends Module {
    public static Numbers<Double> r = new Numbers("Red", "Red", (Number)255.0, (Number)0.0, (Number)255.0, (Number)1.0);
    public static Numbers<Double> g = new Numbers("Green", "Green", (Number)255.0, (Number)0.0, (Number)255.0, (Number)1.0);
    public static Numbers<Double> b = new Numbers("Blue", "Blue", (Number)255.0, (Number)0.0, (Number)255.0, (Number)1.0);
    public static Numbers<Double> a = new Numbers("Alpha", "Alpha", (Number)255.0, (Number)0.0, (Number)255.0, (Number)1.0);

    public SetColor() {
        super("CustomColor", new String[]{"SetColor"}, ModuleType.Render);
        this.addValues(new Value[]{r, g, b, a});
    }

    @EventHandler
    private void onUpdate(EventPreUpdate e) {
        this.setEnabled(false);
    }
}
